<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if (! class_exists('PrunusLibPlugin')) {
  /**
   * PrunusLibPlugin
   * 
   * Scaffold class to define basic plugin behavior
   * 
   * @package Prunus   
   * @author agosto <agosto@7dedos.com>
   * @copyright	Copyright (c) 2009-2010, 7dedos
   * @link http://www.7dedos.com
   * @version 0.2
   * @access public
   */
  abstract class PrunusLibPlugin {
    public $path;
    public $file;
    public $version;
    public $name;
    protected $ci;
    
    /**
     * PrunusLibPlugin::__construct()
     * 
     * @return
     */
    public function __construct() {
      $this->ci =& get_instance();
    }
    
    /**
     * PrunusLibPlugin::whoami()
     * 
     * @return string Default string identifying the plugin, based on internal properties
     */
    public function whoami() {
      $msg = $this->name . " version " . $this->version . " as " . $this->file . " @ " . $this->path;
      return ($msg);
    }
  }
}
 
